<template>
  <div>
    <el-table :data="todoTabDataList" border style="width: 100%">
      <el-table-column fixed prop="createTime" label="创建日期" width="200"></el-table-column>
      <el-table-column fixed prop="createTime" label="完成日期" width="200"></el-table-column>
      <el-table-column prop="assignee" label="处理人" width="200"> </el-table-column>
      <el-table-column prop="taskName" label="任务名称" width="300"></el-table-column>
      <el-table-column prop="description" label="备注" width="200"> </el-table-column>
      <el-table-column fixed="right" label="操作" width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small"
            >查看</el-button
          >
          <el-button type="text" size="small">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { taskList } from "@/api/activiti/todo.js";



export default {
  name: "FinishedWork",

  mounted() {
    this.getTaskList(this.todoTabQueryForm)
  },
  data() {
    return {
      // 查询代表表单
      todoTabQueryForm: {
        // 已完成
        taskStatus : 1,
        assignee : "dsq",
        
      },

      // 代表表格数据
      todoTabDataList: [],


    };
  },

  methods:{
    getTaskList(data) {
      taskList(data).then(response => {
        if (response.success != true) {
          this.$message({
            message: response.message,
            type: "error",
          });
        }
        this.todoTabDataList = response.data;
      });
    }
  }
};
</script>

<style scoped>
</style>